var app = getApp();

Page({
  data: {
    tapindex: 1,
    pageindex: 1,
    pagesize: 10,
    ispage: !0,
    flag: !0,
    type: 1,
    formId: "",
    orderlist: [],
    imgLogo: "",
    show: true,
    Info: "商家暂未开通此服务",
    isData: false
  },
  onLoad: function (opts) {
    this.setData({
      tapindex: opts.sl,
      type: opts.type
    });
  },
  RefreshMessage: function (e) {
    this.setData({
      tapindex: 1,
      pageNumber: 1,
      pagesize: 10,
      orderlist: [],
      ispage: !0,
      flag: !0,
      type: 1,
      isData: !0
    })
  },
  allOrders: function () {
    this.setData({
      tapindex: 1,
      pageindex: 1,
      pagesize: 10,
      orderlist: [],
      ispage: !0,
      flag: !0,
      type: 1,
      isData: !0
    });
  },
  toBePaid: function () {
    this.setData({
      tapindex: 2,
      pageindex: 1,
      pagesize: 10,
      orderlist: [],
      ispage: !0,
      flag: !0,
      type: 2,
      isData: !0
    });
  },
  receiptOfGoods: function () {
    this.setData({
      tapindex: 3,
      pageindex: 1,
      pagesize: 10,
      ispage: !0,
      flag: !0,
      orderlist: [],
      type: 4,
      isData: !0
    });
  },
  toBeEvaluated: function () {
    this.setData({
      tapindex: 4,
      pageindex: 1,
      pagesize: 10,
      ispage: !0,
      flag: !0,
      orderlist: [],
      type: 5,
      isData: !0
    });
  },
  closeAlert: function() {
    this.setData({
      show: false
    });
  },
  showAlert: function() {
    this.setData({
      show: true
    });
  }
});